home *** CD-ROM | disk | FTP | other *** search
-
-
-
- strtod User Commands strtod
-
-
-
- _________________________________________________________________
-
- NNAAMMEE
- strtod - Convert character string to floating-point number
-
- SSYYNNOOPPSSIISS
- ##iinncclluuddee <<ssttddlliibb..hh>>
-
- ddoouubbllee
- ssttrrttoodd((_s_t_r_i_n_g, _e_n_d_P_t_r)
-
- AARRGGUUMMEENNTTSS
- char *_s_t_r_i_n_g (in) String containing ASCII
- representation of floating-point
- number.
-
- char **_e_n_d_P_t_r (out) If not NNUULLLL, gives address of
- pointer to fill in with address
- of first character not forming
- part of number.
-
- _________________________________________________________________
-
-
- DDEESSCCRRIIPPTTIIOONN
- The ssttrrttoodd procedure parses a floating-point number in ASCII
- representation and returns a ddoouubbllee result containing the
- binary form of the number. The expected form of _s_t_r_i_n_g is
- an optional plus or minus sign, then a sequence of decimal
- digits optionally containing a decimal point, then an
- optional exponent part. If the exponent part is present, it
- consists of the letter EE (or ee), then an optional plus or
- minus sign, then a sequence of decimal digits. The entire
- floating-point number may be preceded by any amount of white
- space (as defined by the iissssppaaccee procedure).
-
- _S_t_r_t_o_d examines as many characters as possible from _s_t_r_i_n_g
- while still obeying the syntax rules given above. If _e_n_d_P_t_r
- is not NNUULLLL, then the address of the first character follow-
- ing the floating-point number is stored in *_e_n_d_P_t_r.
-
- If _s_t_r_i_n_g does not refer to a floating-point number in the
- format given above, then zero is returned and _s_t_r_i_n_g will be
- stored at *_e_n_d_P_t_r.
-
-
- KKEEYYWWOORRDDSS
- convert, floating-point, string
-
-
-
-
-
-
-
-
-
- Sprite v.1.0 Printed: May 20, 1989 1
-
-
-
-